package edu.scut.course_management.dto;
import edu.scut.course_management.po.Section;

import java.util.List;

/**
 * 用于封装课程信息列表的数据
 * 
 * @author thompson
 */
public class GetCourseListDTO {
    private String title;
    private String courseTypeName;
    private String year;
    private String term;
    private Integer classHours;
    private Double credits;
    private String name;//老师的名字
    private String identifier;
    List<TimePlace> timePlace;
    List<Section> sections;

    
    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getCourseTypeName() {
        return courseTypeName;
    }

    public void setCourseTypeName(String courseTypeName) {
        this.courseTypeName = courseTypeName;
    }

    public String getYear() {
        return year;
    }

    public void setYear(String year) {
        this.year = year;
    }

    public String getTerm() {
        return term;
    }

    public void setTerm(String term) {
        this.term = term;
    }

    public Integer getClassHours() {
        return classHours;
    }

    public void setClassHours(Integer classHours) {
        this.classHours = classHours;
    }

    public Double getCredits() {
        return credits;
    }

    public void setCredits(Double credits) {
        this.credits = credits;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public List<TimePlace> getTimePlace() {
        return timePlace;
    }

    public void setTimePlace(List<TimePlace> timePlace) {
        this.timePlace = timePlace;
    }

    public List<Section> getSections() {
        return sections;
    }

    public void setSections(List<Section> sections) {
        this.sections = sections;
    }

    

    public void setBasicAttris(CourseListInfo courseListInfo, String year, String term){
        this.title = courseListInfo.getTitle();
        this.courseTypeName = courseListInfo.getCourseTypeName();
        this.year = year;
        this.term = term;
        this.classHours = courseListInfo.getClassHours();
        this.credits = courseListInfo.getCredits();
        this.name = courseListInfo.getName();
    }

    public String getIdentifier() {
        return identifier;
    }

    public void setIdentifier(String identifier) {
        this.identifier = identifier;
    }

    @Override
    public String toString() {
        return "GetCourseListDTO [classHours=" + classHours + ", courseTypeName=" + courseTypeName + ", credits="
                + credits + ", identifier=" + identifier + ", name=" + name + ", sections=" + sections + ", term="
                + term + ", timePlace=" + timePlace + ", title=" + title + ", year=" + year + "]";
    }

    

    
}